﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

public class REGISTER_LIST
{
    public System.Windows.Forms.GroupBox GroupBox;
    public System.Windows.Forms.Label Name_Label;
    public System.Windows.Forms.Label ID_Label;
    public System.Windows.Forms.Button Add_Botton;
    public System.Windows.Forms.TextBox ID_Textbox;
    public System.Windows.Forms.DataGridView DataGridView;
    public DataTable EmplTable;

    public void Class_Init(int pos_x, int pos_y)
    {
        this.GroupBox = new System.Windows.Forms.GroupBox();
        this.DataGridView = new System.Windows.Forms.DataGridView();
        this.ID_Label = new System.Windows.Forms.Label();
        this.Name_Label = new System.Windows.Forms.Label();
        this.ID_Textbox = new System.Windows.Forms.TextBox();
        this.Add_Botton = new System.Windows.Forms.Button();
        this.EmplTable = new DataTable();
        // 
        // GroupBox
        // 
        this.GroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                    | System.Windows.Forms.AnchorStyles.Left)
                    | System.Windows.Forms.AnchorStyles.Right)));
        this.GroupBox.Controls.Add(this.Add_Botton);
        this.GroupBox.Controls.Add(this.ID_Textbox);
        this.GroupBox.Controls.Add(this.Name_Label);
        this.GroupBox.Controls.Add(this.ID_Label);
        this.GroupBox.Controls.Add(this.DataGridView);
        this.GroupBox.Location = new System.Drawing.Point(pos_x, pos_y);
        this.GroupBox.Name = "GroupBox";
        this.GroupBox.Size = new System.Drawing.Size(405, 386);
        this.GroupBox.TabIndex = 2;
        this.GroupBox.TabStop = false;
        this.GroupBox.Text = "Danh Sách Đăng Ký";
        // 
        // DataGridView
        // 
        this.DataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                    | System.Windows.Forms.AnchorStyles.Left)
                    | System.Windows.Forms.AnchorStyles.Right)));
        this.DataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
        this.DataGridView.Location = new System.Drawing.Point(6, 90);
        this.DataGridView.Name = "DataGridView";
        this.DataGridView.Size = new System.Drawing.Size(393, 290);
        this.DataGridView.TabIndex = 0;
        this.DataGridView.DataSource = EmplTable;
        this.DataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
        // 
        // DataTable
        //
        this.EmplTable.Columns.Add("Empl_ID");
        this.EmplTable.Columns.Add("Empl_Name");

        // 
        // ID_Label
        // 
        this.ID_Label.AutoSize = true;
        this.ID_Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.ID_Label.ForeColor = System.Drawing.SystemColors.MenuHighlight;
        this.ID_Label.Location = new System.Drawing.Point(6, 16);
        this.ID_Label.Name = "ID_Label";
        this.ID_Label.Size = new System.Drawing.Size(59, 20);
        this.ID_Label.TabIndex = 1;
        this.ID_Label.Text = "MSNV";
        // 
        // Name_Label
        // 
        this.Name_Label.AutoSize = true;
        this.Name_Label.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.Name_Label.ForeColor = System.Drawing.SystemColors.MenuHighlight;
        this.Name_Label.Location = new System.Drawing.Point(6, 48);
        this.Name_Label.Name = "Name_Label";
        this.Name_Label.Size = new System.Drawing.Size(107, 24);
        this.Name_Label.TabIndex = 1;
        this.Name_Label.Text = "Họ và Tên";
        // 
        // ID_Textbox
        // 
        this.ID_Textbox.Location = new System.Drawing.Point(97, 16);
        this.ID_Textbox.Name = "ID_Textbox";
        this.ID_Textbox.Size = new System.Drawing.Size(162, 20);
        this.ID_Textbox.TabIndex = 2;
        // 
        // Add_Botton
        // 
        this.Add_Botton.Location = new System.Drawing.Point(324, 13);
        this.Add_Botton.Name = "Add_Botton";
        this.Add_Botton.Size = new System.Drawing.Size(75, 23);
        this.Add_Botton.TabIndex = 3;
        this.Add_Botton.Text = "Add";
        this.Add_Botton.UseVisualStyleBackColor = true;

    }
}

